package com.eliza.spring.cloud.library.mapper

import com.eliza.spring.cloud.library.pojo.Order
import org.apache.ibatis.annotations.Mapper
import org.apache.ibatis.annotations.Select

@Mapper

interface OrderMapper {
    @Select("SELECT * FROM Spring.CloudOrder where id = #{id}")
    fun findById(id: Long): Order?

    @Select("SELECT * FROM Spring.CloudOrder ")
    fun getAllOrder(): List<Order>

}